package com.zecan.springcloud.service.impl;

import com.zecan.springcloud.entity.CommonResult;
import com.zecan.springcloud.entity.Payment;
import com.zecan.springcloud.service.FallbackService;
import org.springframework.stereotype.Component;

/**
 * @ClassName FallbackServiceImpl
 * @Description TODO
 * @date 2022/5/13 10:39
 * @Version 1.0
 */
@Component
public class FallbackServiceImpl implements FallbackService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回，---PaymentFallbackService",new Payment(id,"ErrorSerial"));
    }
}
